/* src/assets/style/DepartmentList.css */

/* 基础容器样式 */
.department-container {
    padding: 30px;
    background: rgba(245, 245, 255, 0.95);
    border-radius: 15px;
    box-shadow:
            0 0 20px rgba(167, 139, 250, 0.2),
            0 0 40px rgba(99, 179, 237, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.department-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle,
            rgba(167, 139, 250, 0.1) 0%,
            rgba(99, 179, 237, 0.1) 50%,
            transparent 70%
    );
    animation: rotate 20s linear infinite;
    z-index: 0;
}

/* 头部容器样式 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* 搜索表单样式 */
.search-form {
    display: flex;
    align-items: center;
}

.el-form-item {
    margin-bottom: 0;
    margin-right: 15px;
}

.el-form-item__label {
    color: #4f46e5;
    font-weight: 500;
}

/* 输入框样式 */
.el-input__inner {
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    color: #4f46e5;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.1);
    transition: all 0.3s ease;
}

.el-input__inner:focus {
    border-color: #818cf8;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.3);
}

/* 操作按钮区域 */
.operation-buttons {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.el-button {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.el-button--primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.4);
}

.el-button--success {
    background: linear-gradient(135deg, #10b981, #10a57a);
    color: white;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.el-button--success:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
}

.el-button:not(.el-button--primary):not(.el-button--success) {
    background: white;
    border: 1px solid #c7d2fe;
    color: #6366f1;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.1);
}

.el-button:not(.el-button--primary):not(.el-button--success):hover {
    background: #eef2ff;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}

/* 表格样式 */
.el-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.el-table th {
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.el-table td {
    color: #4f46e5;
    font-weight: 500;
}

.el-table--border {
    border: 1px solid #c7d2fe;
}

.el-table--border th,
.el-table--border td {
    border-right: 1px solid #c7d2fe;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: rgba(167, 139, 250, 0.05);
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #6366f1;
    color: white;
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
    color: #6366f1;
}

/* 对话框样式 */
.el-dialog {
    border-radius: 15px;
    overflow: hidden;
}

.el-dialog__header {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    margin-right: 0;
}

.el-dialog__title {
    color: white;
    font-weight: 600;
}

.el-dialog__headerbtn .el-dialog__close {
    color: white;
}

/* 动画效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .el-form-item {
        margin-right: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .department-container {
        padding: 15px;
    }

    .header-container {
        padding: 15px;
    }

    .el-table {
        font-size: 14px;
    }

    .el-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}